<?php
/**
 * Created by PhpStorm.
 * User: Aliaksei Lazerka
 * Date: 10/22/14
 * Time: 5:48 PM
 */

include_once("functions/db_manipulate.php");

foreach ($_POST as $key => $value) {
  changeMainCategoryTitle($key, $value);
}

header("Location: ".$_SERVER['HTTP_REFERER']);